<!DOCTYPE html>
<!-- release v5.0.2, copyright 2014 - 2019 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Krajee JQuery Plugins - &copy; Kartik</title>
    
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" crossorigin="anonymous">
    <link href="../css/fileinput.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
    <script src="../js/fileinput.js" type="text/javascript"></script>
    <script src="../js/locales/zh.js" type="text/javascript"></script>
</head>
<body>
<div class="container my-4">
    
    <input id="file-0" name="file-0" type="file">
</div>
</body>
<script>
	$("#file-0").fileinput({
        language: 'zh', //设置语言
        uploadUrl: 'www.baidu.com', //上传的地址
        allowedFileExtensions : ['jpg', 'png','gif','keytab'],//接收的文件后缀
        showUpload: false, //是否显示上传按钮
        showCaption: true,//是否显示标题
        browseClass: "btn btn-primary", //按钮样式      
        showCancel: true,       
        previewFileIcon: "<i class='glyphicon glyphicon-king'></i>", 
    });
    
    
    
</script>
</html>